<html>
<head>
    <meta charset="utf-8" />
</head>
<body>
    我是要去跨站请求的页面: 修改具体action的url
    <form id="dataForm" action="" method="post">
        <input type="hidden" id="p1" name="p1" value="">
    </form>

    <script src="../libs/jquery/jquery-3.2.1.min.js"></script>
    <script type="text/javascript">
        $(function(){
            //    console.log(parent.parentParam);
            //    console.log(location.href);
            $('#p1').val(parent.parentParam);
            $('#dataForm').submit();
        });
    </script>
</body>
</html>